Platform Explorer / Nuxeo Platform 2021.7

Contribution org.nuxeo.ecm.user.center.profile.layouts--widgets

This contribution is part of XML component org.nuxeo.ecm.user.center.profile.layouts inside nuxeo-user-profile-jsf-2021.7.jar /OSGI-INF/layouts-contrib.xml

Extension Point

Extension point widgets of component WebLayoutManager.

Registration Order

37
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <widget name="summary_user_profile" type="summary_user_profile"/>
  • <widget name="summary_user_preferences" type="summary_user_preferences"/>
  • <widget name="avatar" type="avatar">
          <labels>
            <label mode="any">label.userprofile.avatar</label>
          </labels>
          <translated>true</translated>
          <helpLabels>
            <label mode="edit">
              helplabel.userprofile.avatar
            </label>
          </helpLabels>
          <fields>
            <field/>
            <field>userprofile:avatar</field>
          </fields>
          <properties mode="any">
            <property name="file_property_name">userprofile:avatar</property>
          </properties>
        </widget>
  • <widget name="birthdate" type="datetime">
          <labels>
            <label mode="any">label.userprofile.birthdate</label>
          </labels>
          <translated>true</translated>
          <helpLabels>
            <label mode="edit">
              helplabel.userprofile.birthdate
            </label>
          </helpLabels>
          <fields>
            <field>userprofile:birthdate</field>
          </fields>
          <properties widgetMode="any">
            <property name="pattern">#{nxu:basicDateFormatter()}</property>
          </properties>
          <properties widgetMode="edit">
            <property name="format">#{nxu:basicDateFormatter()}</property>
          </properties>
        </widget>
  • <widget name="phonenumber" type="text">
          <labels>
            <label mode="any">label.userprofile.phonenumber</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>userprofile:phonenumber</field>
          </fields>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="gender" type="template">
          <labels>
            <label mode="any">label.userprofile.gender</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>userprofile:gender</field>
          </fields>
          <properties mode="any">
            <property name="template">/widgets/gender_widget_template.xhtml
            </property>
          </properties>
        </widget>
  • <widget name="locale_view" type="text">
          <labels>
            <label mode="any">label.userpreferences.locale</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>userprofile:locale</field>
          </fields>
          <widgetModes>
            <mode value="view">view</mode>
            <mode value="any">hidden</mode>
          </widgetModes>
        </widget>
  • <widget name="locale" type="selectOneMenu">
          <labels>
            <label mode="any">label.userpreferences.locale</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field>userprofile:locale</field>
          </fields>
          <properties widgetMode="any">
            <property name="notDisplayDefaultOption">false</property>
          </properties>
          <selectOptions>
            <options itemLabel="#{item.label}" itemValue="#{item.value}" ordering="label" value="#{localeSelector.supportedLocales}" var="item"/>
          </selectOptions>
          <widgetModes>
            <mode value="edit">edit</mode>
            <mode value="any">hidden</mode>
          </widgetModes>
        </widget>
  • <widget name="timezone" type="template">
          <labels>
            <label mode="any">label.userpreferences.timezone</label>
          </labels>
          <translated>true</translated>
          <widgetModes>
            <mode value="view">view</mode>
            <mode value="any">hidden</mode>
          </widgetModes>
          <properties mode="any">
            <property name="template">/widgets/timezone_widget_template.xhtml
            </property>
          </properties>
        </widget>
  • <widget name="userProfile" type="layout">
          <properties widgetMode="any">
            <property name="name">userprofile</property>
          </properties>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="summary_user_profile" type="summary_user_profile"/>

    <widget name="summary_user_preferences" type="summary_user_preferences"/>

    <widget name="avatar" type="avatar">
      <labels>
        <label mode="any">label.userprofile.avatar</label>
      </labels>
      <translated>true</translated>
      <helpLabels>
        <label mode="edit">
          helplabel.userprofile.avatar
        </label>
      </helpLabels>
      <fields>
        <field/>
        <field>userprofile:avatar</field>
      </fields>
      <properties mode="any">
        <property name="file_property_name">userprofile:avatar</property>
      </properties>
    </widget>

    <widget name="birthdate" type="datetime">
      <labels>
        <label mode="any">label.userprofile.birthdate</label>
      </labels>
      <translated>true</translated>
      <helpLabels>
        <label mode="edit">
          helplabel.userprofile.birthdate
        </label>
      </helpLabels>
      <fields>
        <field>userprofile:birthdate</field>
      </fields>
      <properties widgetMode="any">
        <property name="pattern">#{nxu:basicDateFormatter()}</property>
      </properties>
      <properties widgetMode="edit">
        <property name="format">#{nxu:basicDateFormatter()}</property>
      </properties>
    </widget>

    <widget name="phonenumber" type="text">
      <labels>
        <label mode="any">label.userprofile.phonenumber</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>userprofile:phonenumber</field>
      </fields>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>

    <widget name="gender" type="template">
      <labels>
        <label mode="any">label.userprofile.gender</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>userprofile:gender</field>
      </fields>
      <properties mode="any">
        <property name="template">/widgets/gender_widget_template.xhtml
        </property>
      </properties>
    </widget>

    <widget name="locale_view" type="text">
      <labels>
        <label mode="any">label.userpreferences.locale</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>userprofile:locale</field>
      </fields>
      <widgetModes>
        <mode value="view">view</mode>
        <mode value="any">hidden</mode>
      </widgetModes>
    </widget>

    <widget name="locale" type="selectOneMenu">
      <labels>
        <label mode="any">label.userpreferences.locale</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field>userprofile:locale</field>
      </fields>
      <properties widgetMode="any">
        <property name="notDisplayDefaultOption">false</property>
      </properties>
      <selectOptions>
        <options itemLabel="#{item.label}" itemValue="#{item.value}" ordering="label" value="#{localeSelector.supportedLocales}" var="item"/>
      </selectOptions>
      <widgetModes>
        <mode value="edit">edit</mode>
        <mode value="any">hidden</mode>
      </widgetModes>
    </widget>

    <widget name="timezone" type="template">
      <labels>
        <label mode="any">label.userpreferences.timezone</label>
      </labels>
      <translated>true</translated>
      <widgetModes>
        <mode value="view">view</mode>
        <mode value="any">hidden</mode>
      </widgetModes>
      <properties mode="any">
        <property name="template">/widgets/timezone_widget_template.xhtml
        </property>
      </properties>
    </widget>

    <widget name="userProfile" type="layout">
      <properties widgetMode="any">
        <property name="name">userprofile</property>
      </properties>
    </widget>

  </extension>